package com.zwh.modules.hzlog.entity;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author monkey
 * @date 2020/10/20 15:07
 **/
// 默认不加ExcelProperty 的注解的都会参与读写，加了不会参与
@ExcelIgnoreUnannotated
public class EasyExcelReadDto {

    // 指定当前字段对应excel中的那一列
    @ExcelProperty(index = 0)
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;

    private Double earnMoney;

    @ExcelIgnore
    private String ignore;
}
